package com.self.serviceedu.client;

import com.self.commonutils.R;
import com.self.serviceedu.client.impl.VodFileDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-vod",fallback = VodFileDegradeFeignClient.class)
@Component
public interface VodClient {

    //根据视频ID删除阿里云视频
    @DeleteMapping("/eduvod/video/removeVideo/{videoId}")
    R removeVideo(@PathVariable("videoId") String videoId);

    //批量删除视频
    @DeleteMapping("/eduvod/video/delete-batch")
    R deleteBatch(@RequestParam("videoList") List<String> videoList);

}
